const share = {
    created() {
        //#ifdef MP-WEIXIN
        wx.showShareMenu({
            withShareTicket: true,
            menus: ['shareAppMessage', 'shareTimeline']
        });
        //#endif
    },
    
    // 分享到好友
    onShareAppMessage() {
      return {
        title: '易路由你邀请你来做旅游规划',
        path: 'pages/index/index'
      }
    },
    // 分享到朋友圈
    onShareTimeline() {
      return {
        title: '易路由你，旅游规划自由',
        path: 'pages/index/index'
      }
    }
}

export default share